<%@ page language="java" contentType="text/html; charset=ISO-8859-1"pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>cadastro de Livro </title>
</head>
<body>
<f:view>
<h2>Biblioteca Pessoal - Cadastro de Livro</h2>
<p>Efetue o  cadastro do seu livro no sistema para poder gerenciar efetuar emprestimos dos seus livros.</p>

<h:outputText value="#{cadastrolivroMB.msg}" rendered="#{usuarioMB.comMensagem}" style="color: #FF0000"></h:outputText>
		<h:form>
			<nav id="menu">
			<ul style="height: 39px; ">
				<li>
					<h:commandLink action="minhaBiblioteca.jsp">
						<h:outputText value="voltar a pagina inicial"></h:outputText>
					</h:commandLink>
				</li>
				 <li>
					<h:commandLink action="#{usuarioMB.logout}" >
						<h:outputText value="Efetuar logout"></h:outputText>
					</h:commandLink>
				</li>
				</ul>
		
		
		</h:form>
		</nav>
		<h:form>
			<h:panelGrid border="1" columns="2" style="text-align: right">
				<h:outputText value="Titulo livro: "></h:outputText>
				<h:inputText value="#{cadastrolMB.novolivro.titulo}"></h:inputText>
				<h:outputText value="Autor "></h:outputText>
				<h:inputText value="#{cadastrolMB.novolivro.autores}"></h:inputText>
				<h:outputText value="Editora "></h:outputText>
				<h:inputText value="#{cadastrolMB.novolivro.editora}"></h:inputText>
				<h:outputText value="Ano "></h:outputText>
				<h:inputText value="#{cadastrolMB.novolivro.ano}"></h:inputText>
				<h:outputText value="isbn "></h:outputText>
				<h:inputText value="#{cadastrolMB.novolivro.isbn}"></h:inputText>

			</h:panelGrid>
			<h:commandButton value="Cadatrar livro" action="#{cadastrolMB.cadastraLivro}"></h:commandButton>
		</h:form>

</f:view>

</body>
</html>